package com.library.books.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.library.common.annotation.Excel;
import com.library.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 其他书籍库对象 book_lib
 *
 * @author hb
 * @date 2024-10-30
 */
@ApiModel("其他书籍库对象")
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("booklibrary")
public class BooksLib implements Serializable {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("书籍名称")
    private String name;

    @ApiModelProperty("isbn")
    private String isbn;

    @ApiModelProperty("封面")
    private String headPic;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("所属类别")
    private String kinder;

    @ApiModelProperty("图书简介")
    private String memo;

    @ApiModelProperty("isbn搜索后数据")
    private String isbnJson;

    @ApiModelProperty("出版时间")
    private String pulishTime;

    @ApiModelProperty("出版社")
    private String publisher;

    @ApiModelProperty("售价")
    private String sellPrice;

    @ApiModelProperty("加个")
    private String price;

    @ApiModelProperty("折扣")
    private String discount;

    @ApiModelProperty("状态")
    private String state;

    @ApiModelProperty("最后更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty("录入时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
